package com.server;

import java.util.List;

import com.mapper.ArticleMapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Article;

public interface ArticleService {
    List<Article> getAllArticles();
    Article searchByArticleID(@Param("articleID") Integer articleID);
    Article getArticleById(@Param("articleID") Long articleID);

    List<Article> getArticlesByGradeId(@Param("gradeId") Long gradeId);
    List<Article> selectArticlesByGrade(String grade);

    List<Article> searchArticles(String keyword);
    int addArticle(Article article);
    Article getArticle(Integer articleID);
    void deleteArticle(Integer articleID);
    void updateArticle(Article article);
}
